package org.wyn.service;

import java.util.List;

import org.wyn.mongodb.bean.FreshThing;
import org.wyn.service.impl.FreshThingServiceImpl;

import com.google.inject.ImplementedBy;

/**
 * 新鲜事service接口层
 * @author wyn
 *
 */
@ImplementedBy(FreshThingServiceImpl.class)
public interface IFreshThingService {
	/**
	 * 根据新鲜事发生者查找
	 * @param ownerUserName
	 * @return ownerUserName发生的所有新鲜事
	 */
	public List<FreshThing> findByOwner(String ownerUserName);
	/**
	 * 查找用户(userName)好友和他自己的新鲜事
	 * @param userName 
	 * @return
	 */
	public List<FreshThing> findThingOfFrindAndSelf(String userName);
}
